package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category {
    //分类ID
    private Integer id;
    //分类名字
    private String name;
    //排序
    private Integer sort;
    //类ID  0表示顶级分类
    private Integer parentId;

    // 子属性集合
    private List<Category> children;
}
